# coding=utf-8

from web.utils import storage
import settings

def _format_admin_url(postfix):
    '获取正确格式的管理路径'
    return '%s/%s' % (settings.CONFIG.ADMIN_DIR, postfix)

menu = (
        # 首页
        storage(name = '首页'
            , lst = ( 
                storage(url = _format_admin_url('home'), name = '首页', ), 
                storage(url = _format_admin_url('discount'), name = '特惠信息管理', ),
                storage(url = _format_admin_url('discount/top10'), name = '甄选TOP30'),
            ) 
        ),
        # 项目
        storage(name = '项目'
            , lst = (
                storage(url = _format_admin_url('proj'), name = '旅行项目'),
                storage(url = _format_admin_url('discount'), name = '特惠信息'),
                storage(url = _format_admin_url('discount/top10'), name = '甄选TOP30'),
                storage(url = _format_admin_url('afflatus'), name = '灵感瀑布'),
                storage(url = _format_admin_url('dest'), name = '目的地'),
                storage(url = _format_admin_url('tags'), name = '标签'),
            )
        ),
        storage(name = '商家'
            , lst = (
                storage(url = _format_admin_url('partner'), name = '合作商家'),
            )
        ),
        storage(name = '蜘蛛'
            , lst = (
                storage(url = _format_admin_url('spider'), name = '蜘蛛'),
                storage(url = _format_admin_url('spider/hotel'), name = '酒店'),
            )
        ),
        # 线路
        storage(name = '线路'
            , lst = ( 
                storage(url = _format_admin_url('tours'), name = '管理'),
            )
        ),
        # 用户
        storage(name = '用户'
            , lst = ( 
                storage(url = _format_admin_url('users'), name = '管理'),
            )
        ),
)
